﻿<div class="wrapper border-bottom white-bg page-heading">
    <div class="col-lg-pull-12">
        <ol class="breadcrumb">
            <li class="active">下架商品</li>
        </ol>
    </div>
</div>
<div ng-controller="distributionController">
    <div class="row ui-box">
        <div class="col-md-4">
            <div class="input-group">
                <input type="text" class="form-control input-sm" ng-model="query.keyword" placeholder="商品名称">
                <span class="input-group-btn">
                    <button class="btn btn-primary btn-sm" type="button" ng-click="search()"><i class="fa fa-search"></i> 查询</button>
                </span>
            </div>
        </div>
    </div>
    <table class="table table-hover m-t-md">
        <thead>
            <tr>
                <th width="100">名称 价格</th>
                <th width="80">分类</th>
                <th width="80">分销商</th>
                <th width="105" style="text-align:right">操作</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="item in list">

                <td>
                    <div class="media">
                        <div class="media-left">
                            <a href="{{site.img_url+item.product.image_path[0]}}" target="_blank" class="thumbnail" style="width:60px;height:60px;">
                                <img ng-src="{{site.img_url+item.product.image_path[0]}}" ng-show="item.product.image_path" width="60" height="60">
                            </a>
                        </div>
                        <div class="media-body">
                            <p class="media-heading">{{item.product.name}}</p>
                            <span>{{item.product.price | currency:'￥'}}</span>
                        </div>
                    </div>
                </td>
                <td>{{item.category_name}}</td>
                <td>{{item.merchant_name}}</td>
                <td align="right">
                    <a class="btn btn-primary btn-xs" ng-click="sold_out(item.id)"><i class="fa fa-cog"></i> 下架</a>
                </td>
            </tr>
        </tbody>
    </table>
</div>